package msi.gama.display.java3d.notused;

import javax.vecmath.Vector3d;

//TODO minhvv REMOVE not used

public class RenderingObjectInfo {
	private Vector3d currentPos;
	private String objId;

	private boolean isChanged = false;
	private boolean isDead = false;

	public RenderingObjectInfo(Vector3d initLocation, String objId) {
		this.currentPos = initLocation;
		this.objId = objId;
		resetFlags();
	}

	public void resetFlags() {
		isChanged = false;
		isDead = false;
	}

	// //////////////////////////////////////////////////////////////////////////

	public void setObjectDead() {
		isDead = true;
	}

	public void setObjectChanged() {
		isChanged = true;
	}

	public void setCurrentPos(Vector3d currentPos) {
		this.currentPos = currentPos;
	}

	// //////////////////////////////////////////////////////////////////////////

	public Vector3d getCurrentPos() {
		return currentPos;
	}

	public boolean isObjDead() {
		return isDead;
	}

	public boolean isObjChanged() {
		return isChanged;
	}

	public boolean isMatch(String otherId) {
		return this.objId.equals(otherId);
	}

	public boolean isLocationChanged(Vector3d newLocation) {
		return !this.currentPos.equals(newLocation);
	}

}